package com.jlect.swebing.ui.client;

/**
 * ComponentOrientation logic is incapsulated in this class
 *
 * @author Sergey Kozmin
 * @since 17.11.2007 16:45:55
 */
public class ComponentOrientation {
    private boolean isLeftToRight;
    private boolean isHorizontal;

    public ComponentOrientation(boolean leftToRight, boolean horizontal) {
        isLeftToRight = leftToRight;
        isHorizontal = horizontal;
    }

    public ComponentOrientation() {
        this(true, true);
    }

    public boolean isLeftToRight() {
        return isLeftToRight;
    }

    public void setLeftToRight(boolean leftToRight) {
        isLeftToRight = leftToRight;
    }

    public boolean isHorizontal() {
        return isHorizontal;
    }

    public void setHorizontal(boolean horizontal) {
        isHorizontal = horizontal;
    }
}
